#ifndef CALL_FUNCS_H
#define CALL_FUNCS_H
#include "pins.h"
#include <ui.h>
#include <lvgl.h>
#include <Arduino.h>

int brightness = 1023;

void setBrightness(lv_event_t * e)
{
	// Your code here
    ledcWrite(0, (int)lv_slider_get_value(ui_Slider1));
    // Serial.printf("Brightness changed: %d\n", (int)lv_slider_get_value(ui_Slider1));
}

void waterPushed(lv_event_t * e)
{
	// Your code here
    digitalWrite(PUMP_VDD, HIGH);
    Serial.println("Pump On");
}

void waterReleased(lv_event_t * e)
{
	// Your code here
    digitalWrite(PUMP_VDD, LOW);
    Serial.println("Pump Off");
}


#endif // CALL_FUNCS_H